package com.ly.mpayment.persist.entity.yidong;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "payment")
public class Payment {

	private String payId;
	private String pushPath;
	private String payResult;
	private String rechargeResult;
	private String shopNum;
	private String secret;

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "payid", unique = true, nullable = false, length = 36)
	public String getPayId() {
		return payId;
	}

	public void setPayId(String payId) {
		this.payId = payId;
	}

	@Column(name="push_path")
	public String getPushPath() {
		return pushPath;
	}

	public void setPushPath(String pushPath) {
		this.pushPath = pushPath;
	}

	@Column(name="pay_result")
	public String getPayResult() {
		return payResult;
	}

	public void setPayResult(String payResult) {
		this.payResult = payResult;
	}

	@Column(name="recharge_result")
	public String getRechargeResult() {
		return rechargeResult;
	}

	public void setRechargeResult(String rechargeResult) {
		this.rechargeResult = rechargeResult;
	}

	@Column(name="shop_num")
	public String getShopNum() {
		return shopNum;
	}

	public void setShopNum(String shopNum) {
		this.shopNum = shopNum;
	}


	@Column(name="secret")
	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	@Override
	public String toString() {
		return "Payment [payId=" + payId + ", pushPath=" + pushPath + ", payResult=" + payResult + ", rechargeResult="
				+ rechargeResult + ", shopNum=" + shopNum + ", secret=" + secret + "]";
	}



}
